import type { UserQueryListParams, UserSaveOrUpdateParams } from '@/types'
import { PAGING } from '@/constant'

export const defaultUserForm: Partial<UserSaveOrUpdateParams> = {
  userName: '',
  loginName: '',
  password: '',
  phone: '',
  departmentalId: undefined,
  email: '',
  profilePhoto: '',
  tenantId: undefined,
  tenantName: '',
}

export const defaultPagingParams: UserQueryListParams = {
  ...PAGING.PARAMS,
  userName: '',
}
export const userFormRules = generateCurrencyFormRules(defaultUserForm)
